home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / IBPalettes / WW3DKit / WWLightInspectorShape.h < prev    next >
Encoding:
Text File  |  1995-03-22  |  1.3 KB  |  30 lines

  1. // copyright 1993 Michael B. Johnson; some portions copyright 1994, MIT
  2. // see COPYRIGHT for reuse legalities
  3. //
  4.  
  5.  
  6. #import <appkit/appkit.h>
  7.  
  8. #import <3Dkit/N3DShape.h>
  9. #import "WW3DCamera.h"
  10.  
  11. @interface WWLightInspectorShape:N3DShape
  12. {
  13.   RtFloat  xMin, xMax, yMin, yMax, zMin, zMax; 
  14.   RtInt    boxNVertices[6]; // { 4, 4, 4, 4, 4, 4 }
  15.   RtInt    boxVertices[24]; // { 0, 3, 3, 2,  1, 2, 6, 5,  4, 5, 6, 7,  7, 3, 0, 4,  0, 1, 5, 4,  7, 6, 2, 3 }
  16.   RtPoint  boxPoints[8];  // { xMin, yMin, zMin,  xMax, yMin, zMin,  xMax, yMax, zMin,  xMin, yMax, zMin,  
  17.                           //   xMin, yMin, zMax,  xMax, yMin, zMax,  xMax, yMax, zMax,  xMin, yMax, zMax,  
  18.   RtPoint  xAxisPoints[4]; // { 0, if (yMin < 0.0) { 2.*yMin } else { yMin/2.},  if (zMin < 0.0) { 2.*zMin } else { zMin/2.},  
  19.                            //   0, if (yMax < 0.0) { yMax/2. } else { 2.*yMax},  if (zMin < 0.0) { 2.*zMin } else { zMin/2.},  
  20.                            //   0, if (yMax < 0.0) { yMax/2. } else { 2.*yMax},  if (zMax < 0.0) { zMin/2. } else { 2.*zMin},  
  21.                            //   0, if (yMin < 0.0) { 2.*yMin } else { yMin/2.},  if (zMax < 0.0) { zMin/2. } else { 2.*zMin} } 
  22.   RtPoint  yAxisPoints[4];
  23.   RtPoint  zAxisPoints[4];
  24. }
  25.  
  26. //- initWithShape:templateShape;
  27. - synchUpWithBoundingBox;
  28.  
  29. @end
  30.